﻿<s:SurfaceUserControl x:Class="WikipediaSurfaceBrowser.WikiTopic"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008"
    >
    <Border CornerRadius="5">
    	<Border.Background>
    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    			<GradientStop Color="#FF339966" Offset="0"/>
    			<GradientStop Color="#AA339966" Offset="1"/>
    		</LinearGradientBrush>
    	</Border.Background>
        <DockPanel Background="White" Margin="30">
            <Label Name="lblTitle" DockPanel.Dock="Top" FontSize="20" FontWeight="Bold" Foreground="#FF484848" />
            <Grid DockPanel.Dock="Bottom">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <s:SurfaceButton Name="cmdBack"
                             Grid.Row="0"
                             Grid.Column="0"
                             Click="cmdBack_Click">
                    <Image Height="40" Width="40" Source="pack://application:,,,/Resources/Vista-back.png" />
                </s:SurfaceButton>
                <s:SurfaceButton Name="cmdClose"
                             Grid.Row="0"
                             Grid.Column="2"
                             Click="cmdClose_Click">
                    <Image Height="40" Width="40" Source="pack://application:,,,/Resources/Vista-logout.png" />
                </s:SurfaceButton>
            </Grid>
            <s:SurfaceScrollViewer Name="wiki" 
                               HorizontalScrollBarVisibility="Disabled">
                <FlowDocumentScrollViewer VerticalScrollBarVisibility="Hidden" Name="doc" />
            </s:SurfaceScrollViewer>
        </DockPanel>
    </Border>
</s:SurfaceUserControl>
